﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DBO;

namespace CustomControls.Atoms
{
    public partial class StatisticsControl : UserControl
    {
        public StatisticsControl()
        {
            InitializeComponent();
            Statistics = new UnitStatistics();
        }

        private UnitStatistics stats;

        public UnitStatistics Statistics
        {
            get { return stats; }
            set
            {
                stats = value;
                if (value == null)
                    return;
                AttackLabel.Text = value.Attack.ToString();
                DefenseLabel.Text = value.Defense.ToString();
                DexterityLabel.Text = value.Dexterity.ToString();
                SpeedLabel.Text = value.Speed.ToString();
                HealthLabel.Text = value.MaxHP.ToString();
                RangeLabel.Text = value.MinRange.ToString() + " - " + value.MaxRange.ToString();
            }
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {

        }

        private void DexterityLabel_Click(object sender, EventArgs e)
        {

        }

    }
}
